Class GameCloner

java.lang.Object
es.csic.iiia.fabregues.dip.util.GameCloner

public class GameCloner
extends java.lang.Object
Shows how to clone games.
Author:
Angela Fabregues, IIIA-CSIC, fabregues@iiia.csic.es You can type Game clon = GameCloner.clone(game); to get a cloned version of game.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static java.lang.String NOW  
    static java.lang.String SCO  
  • Constructor Summary

    Constructors 
    Constructor Description
    GameCloner()  
  • Method Summary

    Modifier and Type Method Description
    static Game clone​(Game game)
    Clones a game
    static void main​(java.lang.String[] args)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • main

      public static void main​(java.lang.String[] args)
    • clone

      public static Game clone​(Game game)
      Clones a game
      Parameters:
      game -
      Returns:
      the cloned game